package com.kitty.web.system.rewardset.service.impl;

import com.kitty.web.domain.PRewardset;
import com.kitty.web.mapper.PRewardsetMapper;
import com.kitty.web.system.rewardset.service.IPRewardsetService;
import com.kitty.web.core.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 充值奖励Service业务层处理
 * 
 * @author soul
 * @date 2022-03-09
 */
@Service
public class PRewardsetServiceImpl implements IPRewardsetService
{
    @Autowired
    private PRewardsetMapper pRewardsetMapper;

    /**
     * 查询充值奖励
     * 
     * @param id 充值奖励ID
     * @return 充值奖励
     */
    @Override
    public PRewardset selectPRewardsetById(Long id)
    {
        return pRewardsetMapper.selectPRewardsetById(id);
    }

    /**
     * 查询充值奖励列表
     * 
     * @param pRewardset 充值奖励
     * @return 充值奖励
     */
    @Override
    public List<PRewardset> selectPRewardsetList(PRewardset pRewardset)
    {
        return pRewardsetMapper.selectPRewardsetList(pRewardset);
    }

    /**
     * 新增充值奖励
     * 
     * @param pRewardset 充值奖励
     * @return 结果
     */
    @Override
    public int insertPRewardset(PRewardset pRewardset)
    {
        return pRewardsetMapper.insertPRewardset(pRewardset);
    }

    /**
     * 修改充值奖励
     * 
     * @param pRewardset 充值奖励
     * @return 结果
     */
    @Override
    public int updatePRewardset(PRewardset pRewardset)
    {
        return pRewardsetMapper.updatePRewardset(pRewardset);
    }

    /**
     * 删除充值奖励对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePRewardsetByIds(String ids)
    {
        return pRewardsetMapper.deletePRewardsetByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除充值奖励信息
     * 
     * @param id 充值奖励ID
     * @return 结果
     */
    @Override
    public int deletePRewardsetById(Long id)
    {
        return pRewardsetMapper.deletePRewardsetById(id);
    }
}
